<?php
$server="localhost";
$db_username="root";
$db_password="";
$dbname="tourism";
$conn = new mysqli($server,$db_username,$db_password,$dbname);
if ($conn->connect_error) {
    die("连接失败: " . $conn->connect_error);
}

?>